package com.demo.config.express;

import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.NoSuchAlgorithmException;

/**
 * @class：SFLogisticsController
 * @since: 2023/9/5 17:27
 * @description: 顺丰物流管理
 */
@RequestMapping("/sf")
@RestController
public class SFLogisticsController {

	@Autowired
	private SFLogisticsService SFLogisticsService;

	/**
	 * 查询顺丰物流信息
	 * @param request
	 * @return
	 * @throws NoSuchAlgorithmException
	 */
	@RequestMapping("/list")
	public SFLogisticsSearchResponse select(@RequestBody @Valid ExpressQo request) throws NoSuchAlgorithmException {
		return SFLogisticsService.logisticsSearch(request);
	}

}
